<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
>

<head>
    <meta charset="UTF-8">
    <title>最终界面</title>
</head>
    <body>
         <h1>学生信息展示</h1>
         <table>
             <tr>
                 <td>姓名</td>
                 <td><span th:text="${Student.name}"/></td>
             </tr>
             <tr>
                 <td>学号</td>
                 <td><span th:text="${Student.id}"/></td>
             </tr>
             <tr>
                 <td>年级</td>
                 <td><span th:text="${Student.grade}"/></td>
             </tr>
             <tr>
                 <td>专业</td>
                 <td><span th:text="${Student.profession}"/></td>
             </tr>
             <tr>
                 <td>学院</td>
                 <td><span th:text="${Student.college}"/></td>
             </tr>
             <tr>
                 <td>已选课程</td>
                 <div th:each="course:${courses}">
                     <td><span th:text="${course.name}"/></td>
                 </div>
             </tr>

         </table>
    </body>
</html>